package com.djl.zenithbite.controller.shopping;

import com.djl.zenithbite.common.response.BaseResponse;
import com.djl.zenithbite.dto.request.shopping.ShoppingQueryRequest;
import com.djl.zenithbite.service.shopping.ShoppingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/shopping")
public class ShoppingController {

    @Autowired
    private ShoppingService shoppingService;

    @GetMapping("/list")
    public BaseResponse list(ShoppingQueryRequest request){
        return shoppingService.list(request);
    }
}
